package top.arryweb.application.common.constant;

import lombok.Data;

/**
 * 返回码
 */
@Data
public class StatusCode {
    //public static final int OK = 20000;//成功
    //public static final int ERROR = 20001;//失败
    //public static final int LOGINERROR = 20002;//用户名或密码错误
    //public static final int ACCESSERROR = 20003;//权限不足
    //public static final int REMOTEERROR = 20004;//远程调用失败
    //public static final int REPERROR = 20005;//重复操作
    //public static final int NOTFOUNDERROR = 20006;//没有对应的抢购数据

    /**
     * 成功处理请求
     */
    public static final int CODE_SUCCESS = 200;

    /**
     * 请求的数据格式不符
     */
    public static final int CODE_BODY_NOT_MATCH = 400;

    /**
     * 登录信息异常
     */
    public static final int CODE_UNAUTHORIZED = 401;

    /**
     * 权限不足
     */
    public static final int CODE_ACCESSERROR = 403;

    /**
     * 未找到资源
     */
    public static final int CODE_NOT_FOUND = 404;

    /**
     * 服务器内部错误!
     */
    public static final int CODE_INTERNAL_FAILURE = 500;

    /**
     * 业务异常
     */
    public static final int CODE_Business_Exception = 502;

    /**
     * 服务器正忙，请稍后再试!
     */
    public static final int CODE_SERVER_BUSY = 503;

}
